import { defineStore } from "pinia";
import { UserInfo } from "@/types/user";
import { UserEnum } from "@/enums/user";


export const useUserStore = defineStore({
  id: "app-user",
  state: (): UserInfo => ({
    token: "",
    userId: "",
    userType: UserEnum.MASTER,
  }),
  getters: {
    getToken(): string {
      return this.token;
    },
  },
  actions: {
    async login(): Promise<UserInfo | null> {
      return null;
    },
  },
});
